package com.yanqu.road.server.channelserver.cmd.activity.washe;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.WasheProto;
import com.yanqu.road.server.channelserver.cmd.ChannelCommand;
import com.yanqu.road.server.channelserver.logic.ChannelMessageHelper;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.protocol.ChannelProtocol;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = ChannelProtocol.N_WASHE_SEE_OTHER_USER_DATA, desc = "")
public class ChannelWasheSeeOtherUserDataCmd extends ChannelCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        WasheProto.ChannelWasheSeeOtherUserDataReqMsg reqMsg = WasheProto.ChannelWasheSeeOtherUserDataReqMsg.parseFrom(packet.getBytes());
        ChannelMessageHelper.sendGamePacket(GameProtocol.S_WASHE_SEE_OTHER_USER_DATA_FROM_CROSS, reqMsg.toBuilder(), reqMsg.getSeeChannelId(), reqMsg.getSeeServerId(), reqMsg.getSeeUserId());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
